#include "VMainUi.h"
#include "VPicture.h"
#include "VPushButton.h"
#include "VButton.h"
#include "VMain.h"
#include "VESFlow.h"

VMainUi::VMainUi(void):
    _bg(new VPicture),
    _esflow(new VESFlow)
{
    setupBackground();
    //setupBottomButtons();
    setupCoverflow();
    //connect();
}

void VMainUi::setupBackground()
{
    _bg->loadTexture(VMain::getSkin("bg.png"));
    _bg->setGeometry(1, 1, VIEWPORT_WIDTH - 1, VIEWPORT_HEIGHT - 1);
    _bg->setZOrder(0);

    insert(_bg);
}


void VMainUi::setupCoverflow()
{
    _esflow->setGeometry(69, 200, 1160, 380);
    _esflow->init();
    _esflow->setZOrder(4);

    insert(_esflow);
}
